const express = require('express')
const router = express.Router()

// const tools = require('../model/tools')
// tools.multer().single('pic')

// tools.multer().fields([{name:''pic1',maxCount:1},{name:''pic2',maxCount:12}])

router.get('/', (req, res) => {
  // res.send('GET request to the homepage')
  res.render('login', {})
})

router.post('/doLogin', (req, res) => {
  var body = req.body
  res.send(body)
})

module.exports = router
